import { getContact } from "../../../lib/data";
import { ContactSection } from "../../../components/ContactSection";
import { ContactHero } from "../../../components/ContactHero";

export const revalidate = 300;

export default function ContactPage({ params }: { params: { locale: string } }) {
  const locale = params.locale;
  const data = getContact(locale);
  return (
    <main className="min-h-screen bg-[#f0f4ff] text-[#1e2a3f]">
      {data.hero && (
        <ContactHero
          title={data.hero.title}
          subtitle={data.hero.subtitle}
          image={data.hero.image}
        />
      )}
      <ContactSection data={data} />
    </main>
  );
}

